home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / help_ai / cumprod < prev    next >
Text File  |  1995-02-18  |  666b  |  30 lines

  1. cumprod:
  2.  
  3. Syntax:    cumprod ( A )
  4.  
  5. Description:
  6.  
  7.     cumprod computes the running, or cumulative product of the
  8.     input, A. If the input is a rectangular matrix, then the
  9.     cumulative product is performed over the columns of the
  10.     matrix. 
  11.  
  12. Example:
  13.  
  14.         > a=1:4
  15.          a =
  16.                 1          2          3          4  
  17.         > cumprod (a)
  18.                 1          2          6         24  
  19.         > a = [1,2,3;4,5,6;7,8,9]
  20.          a =
  21.                 1          2          3  
  22.                 4          5          6  
  23.                 7          8          9  
  24.         > cumprod (a)
  25.                 1          2          3  
  26.                 4         10         18  
  27.                28         80        162  
  28.  
  29. See Also: cumsum, prod, sum
  30.